import axios from '@/libs/api.request'
const prefix = '/oms/merchant/payment/shop'
// 门店支付列表
export const getShopLists = data => axios.request({
  url: `${prefix}/account/query/page`,
  method: 'post',
  data
})
// 门店列表下拉
export const getShopSelects = data => axios.request({
  url: `${prefix}/account/query/list`,
  method: 'post',
  data
})
// 查询通道及该门店的绑定情况
export const getDetails = data => axios.request({
  url: `${prefix}/channel/query/relation/list`,
  method: 'post',
  data
})
// 批量绑定支付通道验证
export const bindPassageVerify = data => axios.request({
  url: `${prefix}/channel/batch/bind/verify`,
  method: 'post',
  data
})
// 批量绑定支付通道
export const bindPassage = data => axios.request({
  url: `${prefix}/channel/bind`,
  method: 'post',
  data
})
// 绑定商户账号
export const bindAccount = data => axios.request({
  url: `${prefix}/account/bind`,
  method: 'post',
  data
})
// 解绑商户账号
export const unbindAccount = data => axios.request({
  url: `${prefix}/account/unbind`,
  method: 'post',
  data
})
// 查询场景中支付方式配置
export const getPaymentConfig = data => axios.request({
  url: `${prefix}/option/query`,
  method: 'post',
  data
})
// 保存场景中支付方式显示配置
export const savePaymentConfig = data => axios.request({
  url: `${prefix}/option/save`,
  method: 'post',
  data
})
